// 示例   路由   按各自的区域重新引入 写路径 加组件
import NewsRadio from "@/views/findMusic/NewsRadio/RadioIndex";
import RadioList from "@/views/findMusic/NewsRadio/RadioIndex/RadioList";
import RadioType from "@/views/findMusic/NewsRadio/RadioIndex/RadioType";
// import ProgrammList from "@/views/findMusic/NewsRadio/ProgramList";
import Program from "@/views/findMusic/NewsRadio/Program";
import DjRadio from "@/views/findMusic/NewsRadio/DjRadio";


export default [
  {
    path: "/find/newsradio",
    redirect: "/find/newsradio/radiolist",
    component: NewsRadio,
    children: [
      {
        path: "/find/newsradio/radiolist",
        component: RadioList,
      },
      {
        path: "/find/newsradio/radiotype/:id",
        component: RadioType,
      },
    ],
  },
  {
    path: "/find/newsradio/program/:type",
    // component: ProgrammList,
    // 懒加载写法
    // component:resolve=>(['@/views/findMusic/NewsRadio/ProgramList',resolve])
    component: () => import('@/views/findMusic/NewsRadio/ProgramList')
  },
  {
    path: "/find/program/:id",
    component: Program,
  },
  {
    path: "/find/djradio/:id",
    component: DjRadio,
  },
];
